<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <!-- Viewport Metatag -->
    <meta name="viewport" content="width=device-width,initial-scale=1.0">
    <!-- Required Stylesheets -->
    <link rel="stylesheet" type="text/css" href="/adminassets/login/bootstrap/css/bootstrap.min.css"
    media="screen">
    <link rel="stylesheet" type="text/css" href="/adminassets/login/css/fonts/ptsans/stylesheet.css"
    media="screen">
    <link rel="stylesheet" type="text/css" href="/adminassets/login/css/fonts/icomoon/style.css"
    media="screen">
    <link rel="stylesheet" type="text/css" href="/adminassets/login/css/login.css" media="screen">
    <link rel="stylesheet" type="text/css" href="/adminassets/login/css/mws-theme.css" media="screen">
    <title>
        agoda后台登录
    </title>
    <link rel="Shortcut Icon" type="image/x-icon" href="/homeassets/index/images/favicon.ico" />
</head>
<script src="/adminassets/login/js/libs/jquery-1.8.3.min.js"></script>
<body>
    <div id="mws-login-wrapper">
        <div id="mws-login">
            <h1>
                Login
            </h1>
            <div class="mws-login-lock">
                <i class="icon-lock">
                </i>
            </div>
            <div id="mws-login-form">
                <form class="mws-form" action="admin" method="post">
                    {{ csrf_field() }}
                    <div class="mws-form-row">
                        <div class="mws-form-item">
                            <input type="text" name="id" class="mws-login-username required"
                            placeholder="请输入用户名">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <div class="mws-form-item">
                            <input type="password" name="password" class="mws-login-password required"
                            placeholder="请输入密码">
                        </div>
                    </div>
                    <div class="mws-form-row">
                        <ul class="mws-form-list inline">
                            <li>
                                <div class="mws-form-item">
                                    <input type="text" name="code" class="mws-login-code required" placeholder="请输入验证码" style="width:180px">
                                </div>    
                            </li>
                            <li>
                                <img src="/code" onclick="this.src = this.src+'?a=1'" alt="验证码加载失败" title="点击刷新">
                            </li>
                        </ul>
                    </div>
                    <div class="mws-form-row">
                        <input type="submit" value="登录" class="btn btn-success mws-login-button">
                    </div>
                </form>
            </div>
        </div>
   
        <div class="col-md-3" id="successs" style="cursor:pointer;margin-top:10px;height:30px;text-align:center;line-height:30px">
            <div class="card">
                @if(session('error'))
                    <div class="alert alert-danger" style="background:#CD5556;">
                        <strong>
                            {{ session('error') }}
                        </strong>
                    </div>
                @endif
                @if(count($errors) > 0)
                    <div class="alert alert-danger">
                        <ul>
                            @foreach ($errors->all() as $error)
                                <li>{{ $error }}</li>
                            @endforeach
                        </ul>
                    </div>
                @endif
            </div>
        </div>
    </div>
    <script src="/adminassets/assets/js/jquery-1.10.2.js"></script>
    <!-- 验证验证码 -->
    <script src="/adminassets/assets/js/successs.js"></script>
    <!-- 错误信息隐藏特效 --> 
    <script src="/adminassets/code.js"></script>
    <!-- JavaScript Plugins -->
    <script src="/adminassets/login/js/libs/jquery.placeholder.min.js"></script>
    <script src="/adminassets/login/custom-plugins/fileinput.js"></script>
    <!-- jQuery-UI Dependent Scripts -->
    <script src="/adminassets/login/jui/js/jquery-ui-effects.min.js"></script>
    <!-- Plugin Scripts -->
    <script src="/adminassets/login/plugins/validate/jquery.validate-min.js"></script>
    <!-- Login Script -->
    <script src="/adminassets/login/js/core/login.js"> </script>
</body>

</html>